package com.briup.ch06;

public class Salesman extends Employee{
    private double basemoney;
    private double commission;
    public Salesman(String name,String gender,String birth,double basemoney,double commission)
    {
        super(name,gender,birth,"销售人员");
        this.basemoney=basemoney;
        this.commission=commission;
    }
    @Override
    public void computeSalary()
    {
        System.out.println(this.getType()+" "+getName()+" "+"本月工资为:"+(this.basemoney+this.commission)+"元");
    }

}
